<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <style>
    body {
      padding: 10px;
      font-family: 'Segoe UI', Arial, sans-serif;
      margin: 0;
    }
    
    .header {
      text-align: center;
      margin-bottom: 20px;
      padding-bottom: 15px;
      border-bottom: 2px solid #007bff;
    }
    
    .header h2 {
      margin: 0;
      color: #007bff;
      font-size: 18px;
    }
    
    .header p {
      margin: 5px 0 0 0;
      color: #666;
      font-size: 12px;
    }
    
    .section {
      margin: 15px 0;
      padding: 15px;
      background: #f8f9fa;
      border-radius: 8px;
      border-left: 4px solid #007bff;
    }
    
    .section h3 {
      margin: 0 0 10px 0;
      color: #333;
      font-size: 14px;
    }
    
    .info-item {
      display: flex;
      justify-content: space-between;
      margin: 8px 0;
      font-size: 13px;
    }
    
    .label {
      font-weight: bold;
      color: #555;
    }
    
    .value {
      color: #333;
      max-width: 150px;
      text-align: right;
      word-break: break-all;
    }
    
    .button {
      background: #007bff;
      color: white;
      border: none;
      padding: 10px 15px;
      border-radius: 5px;
      cursor: pointer;
      width: 100%;
      margin: 8px 0;
      font-size: 13px;
      transition: background 0.3s;
    }
    
    .button:hover {
      background: #0056b3;
    }
    
    .button:disabled {
      background: #ccc;
      cursor: not-allowed;
    }
    
    .button.secondary {
      background: #6c757d;
    }
    
    .button.secondary:hover {
      background: #545b62;
    }
    
    .status {
      padding: 8px;
      border-radius: 4px;
      text-align: center;
      font-size: 12px;
      margin: 10px 0;
    }
    
    .status.active {
      background: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
    }
    
    .status.inactive {
      background: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
    }
    
    .features {
      margin-top: 15px;
    }
    
    .feature-item {
      display: flex;
      align-items: center;
      margin: 8px 0;
      font-size: 12px;
    }
    
    .feature-icon {
      margin-right: 8px;
      font-size: 14px;
    }
    
    .loading {
      text-align: center;
      color: #666;
      font-style: italic;
    }
  </style>
</head>
<body>
  <div class="header">
    <h2>🎵 MoeKoe Music Helper</h2>
    <p>音乐助手插件</p>
  </div>
  
  <div class="status" id="status">
    <span id="statusText">检测中...</span>
  </div>
  
  <div class="section">
    <h3>📊 当前音乐信息</h3>
    <div class="info-item">
      <span class="label">歌曲:</span>
      <span class="value" id="trackTitle">-</span>
    </div>
    <div class="info-item">
      <span class="label">艺术家:</span>
      <span class="value" id="trackArtist">-</span>
    </div>
    <div class="info-item">
      <span class="label">专辑:</span>
      <span class="value" id="trackAlbum">-</span>
    </div>
    <div class="info-item">
      <span class="label">时长:</span>
      <span class="value" id="trackDuration">-</span>
    </div>
  </div>
  
  <div class="section">
    <h3>🛠️ 功能操作</h3>
    <button class="button" id="translateBtn">
      🌐 翻译歌词
    </button>
    <button class="button" id="identifyBtn">
      🔍 识别音乐
    </button>
    <button class="button secondary" id="refreshBtn">
      🔄 刷新信息
    </button>
  </div>
  
  <div class="section">
    <h3>⚡ 快捷键</h3>
    <div class="features">
      <div class="feature-item">
        <span class="feature-icon">⌨️</span>
        <span>Ctrl+Shift+H: 显示/隐藏控制面板</span>
      </div>
      <div class="feature-item">
        <span class="feature-icon">🎯</span>
        <span>自动检测音乐播放状态</span>
      </div>
      <div class="feature-item">
        <span class="feature-icon">🔄</span>
        <span>刷新音乐信息</span>
      </div>
    </div>
  </div>
  
  <script src="popup.js"></script>
</body>
</html>